<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Untitled Document</title>
	</head>
	<script language=JavaScript>
		function test1(){
			//alert(document.user.username.limit);
			//alert(document.user.username.errMsg);
			//alert(document.user.username.equals);
			//var sa = "as98";
			//var ele = event.srcElement;
			//if(ele.onblur == undefined){
			//	alert("undefine");
			//}else{
			//	ele.onblur();
			//}
		//	alert(isSignName(sa));
			/*
			var es = sa.split("-");
			alert(es.length + ":" + es);
			if(es[0] == ""){
				alert("yes");
			}*/
		}
	</script>
	<script type=text/javascript src=validation_1.0.js></script>
	<script type=text/javascript src=form_1.0.js></script>
	<body>
		<form name=testForm>
		<table>
			<tr>
				<td>usercode</td>
				<td><input type=text name=usercode limit="type:signName;required:true;len:3-20" msgArea="usercode_span" msg="a"></td>
				<td><span id="usercode_span"></span></td>
			</tr>
			<tr>
				<td>password1</td>
				<td><input type=password name=password1 limit="required:true;len:6-8" msgArea="password1_span" msg="密码验证信息"></td>
				<td><span id="password1_span"></span></td>
			</tr>
			<tr>
				<td>password2</td>
				<td><input type=text name=password limit="equals:password1" msgArea="password2_span" msg="confirm password"></td>
				<td><span id="password2_span"></span></td>
			</tr>
			<tr>
				<td>birthday</td>
				<td><input type=text name=birthday limit="type:date;required:true" msgArea="birthday_span"></td>
				<td><span id="birthday_span"></span></td>
			</tr>
			<tr>
				<td>email</td>
				<td><input type=text name=email limit="type:email;required:true" msgArea="email_span" msg="Must BE Email"></td>
				<td><span id="email_span"></span></td>
			</tr>
			<tr>
				<td>age</td>
				<td><input type=text name=age limit="type:int;between:18-80" msgArea="age_span"></td>
				<td><span id="age_span"></span></td>
			</tr>
			<tr>
				<td>realname:</td>
				<td><input type=text name=realname limit="len:6-10" msgArea="realname_span" msg="注册名，必须以字母开头。"></td>
				<td><span id="realname_span"></span></td>
			</tr>
			<tr>
				<td>salary</td>
				<td><input type=text name=salary limit="type:float;required:true;decLen:2"></td>
				<td><span id="tel_span"></span></td>
			</tr>
			<tr>
				<td>intro</td>
				<td><input type=text name=intro limit="required:true;general:false" msgArea="intro_span"></td>
				<td><span id="intro_span"></span></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type=hidden name=errorMsgSpan value="error_msg_span"></td>
				<td><input type=button value=test onclick=checkForm(this.form)></td>
			</tr>
		</table>
		</form>
		
		<br>
		<span id="global_error_msg_area"></span>
		<br>
	</body>
	
</html>
